package com.oscarmovie.model;

public class Company {
	private int id;
	private String name;
	private String nameCn;
	private String displayName;

	public String getDisplayName() {
		if (displayName == null) {
			displayName = name;
			if (!"".equals(nameCn)) {
				displayName += " (" + nameCn + ")";
			}
		}
		return displayName;
	}
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameCn() {
		return nameCn;
	}

	public void setNameCn(String nameCn) {
		this.nameCn = nameCn;
	}

	public int hashCode() {
		return this.id;
	}
	public boolean equals(Object object) {
		boolean t = false;
		if (object != null) {
			Company audio = (Company) object;
			t = audio.getId() == this.getId();
		}
		return t;
	}
}
